<?php
/**
 * Created by b17
 * 2/5/12 9:41 AM
 */

abstract class G4T_TreeController extends G4T_CrudController
{
    public function dndAction()
    {
        if (!$this->_request->isXmlHttpRequest()) {
            $this->redirectWhenNotFound("Illegal request.");
        }
        if ($this->_request->isPost()) {
            $data = array('status' => $this->manager->dnd($this->_request), 'id' => $this->_getParam('id'));
            $this->view->data = $data;
        }
        $this->renderScript('/ajax/json.phtml');
    }
}
